package com.bw.product.controller;

import com.bw.common.core.domain.Result;
import com.bw.product.domain.PmsSkuImages;
import com.bw.product.service.PmsSkuImagesService;
import com.bw.product.service.PmsSkuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * sku图片Controller
 */
@RestController
@RequestMapping("/PmsSkuImages")
public class PmsSkuImagesController {
    @Autowired
    private PmsSkuImagesService pmsSkuImagesService;



    /**
     * 根据id获取sku图片详细信息
     */

    @GetMapping(value = "/{id}")
    public Result<PmsSkuImages> getInfo(@PathVariable("id") Long id)
    {
      PmsSkuImages pmsSkuImages=pmsSkuImagesService.selectPmsSkuImagesById(id);
      return Result.success(pmsSkuImages);
    }

}
